﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;

namespace BlueLotus7.ArchiveSystem.SinaContentApi.Weibo
{
    public partial class WeiboContentRetriever : ContentRetriever
    {

        public WeiboContentRetriever(string loginUserName, string loginPassword)
            : base(loginUserName, loginPassword)
        {
            
        }

        protected string GetHomePageContent(long userId)
        {
            string result = string.Empty;

            if (userId > 0)
            {
                string url = UrlGenerator.GenerateWeiboUserHomeUrl(userId);
                result = RetrieveContentByUrl(url);
            }

            return result;
        }
    }
}
